package dmt16.TelemetrySuit.Controller.SensorTypes
{
	import dmt16.TelemetrySuit.UI.DetailView;
	
	import flash.events.EventDispatcher;

	public class GenericSensor extends EventDispatcher implements ISensorType
	{
		public function GenericSensor()
		{
		}
		
		public var data:Vector.<uint>=new Vector.<uint>();
		
		public function get dataFormat():int
		{
			return DataFormat.UInt16;
		}
		
		public function addData(value:*,time:Number):void
		{
			data.push(value);
			dispatchEvent(new SensorEvent(SensorEvent.SENSOR_DATA_EVENT));
		}
		
		public function get sensorType():int
		{
			return SensorType.GENERIC_SENSOR;		
		}		
	}
}